package com.javatwo;

public class Demo8 {
    public static void main(String[] args) {
        int[] num1= new int[10];
        num1[0]=10;
        num1[1]=99;
        num1[2]=22;
        num1[3]=53;
        num1[4]=32;

        num1[5]=54;
        num1[6]=87;
        num1[7]=343;
        num1[8]=65;
        num1[9]=98;
        //
        for (int i=0;i<num1.length-1;i++){
            for (int j=0;j<num1.length-i-1;j++){
                int num=0;
                if(num1[j]>num1[j+1]){
                    num=num1[j];
                    num1[j]=num1[j+1];
                    num1[j+1]=num;
                }
            }
        }



        for (int i=0;i<num1.length;i++){
            System.out.println(num1[i]);
        }

    }
}
